package cn.com.jrr.core.filter;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.filter.OncePerRequestFilter;

public class MySpringMVCFilter extends OncePerRequestFilter {

	@Override
	protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
			throws ServletException, IOException {
		String notFilter = "/XYL/utf8-jsp/jsp/controller.jsp";
		String url = request.getRequestURI();
		if (notFilter.equals(url)) {
			chain.doFilter(request, response);
		}else{
			super.doFilter(request, response, chain);
		}

	}

}
